package ToYesterday.Day01;

import java.util.ArrayList;
import java.util.Locale;

public class Test {
    public static void main(String[] args) {
        String s = "0p";
        s = s.toLowerCase(Locale.ROOT);
        char[] list = s.toCharArray();
        ArrayList<Character> list1= new ArrayList<Character>();
        for (int i = 0;i<s.length();i++){
            if (list[i]>='a'&&list[i]<='z'||list[i]>='0'&&list[i]<='9')
                list1.add(list[i]);
        }
        int f=0;
        int l=list1.size()-1;
        while (f<l){
            if (list1.get(f)==list1.get(l)){
                f++;
                l--;
            }
            else {
                System.out.println("false");
                break;
            }
        }
        System.out.println("true");
    }
}
